package com.zhouyx.userservice.entity;

import com.zhouyx.userservice.enums.CarType;
import lombok.*;

/**
 * @title: Car
 * @Author: max.zhou1
 * @Date: 2024/9/19 17:42
 * @Version: 1.0
 **/
//@Data
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ToString
public class Car {
    private String make;
    private int numberOfSeats;
    private CarType type;

    public static void main(String[] args) {
        Car car = new Car("NIO", 4, CarType.ALPS);
        updateCar(car);
        System.out.println(car.toString());
    }

    public static void updateCar(Car car) {
        car.setMake("Test");
    }
}
